#coding=utf-8

from selenium import webdriver

driver = webdriver.Firefox()

driver.get("https://login.live.com/login.srf?wa=wsignin1.0&rpsnv=12&ct=1428659995&rver=6.4.6456.0&wp=MBI_SSL_SHARED&wreply=https:%2F%2Fbay182.mail.live.com%2Fdefault.aspx%3Frru%3Dinbox&lc=2052&id=64855&mkt=zh-cn&cbcxt=mai")


driver.find_element_by_id("idDiv_PWD_UsernameExample").clear()

driver.find_element_by_id("idDiv_PWD_UsernameExample").send_keys("mianchaoguoguo@hotmail.com")

driver.find_element_by_id("idDiv_PWD_PasswordExample").clear()

driver.find_element_by_id("idDiv_PWD_PasswordExample").send_keys("guojianli222825")

driver.find_element_by_id("idSIButton9").click()

#通过submit()来提交操作

#driver.find_element_by_id("dl_an_submit").submit()



driver.quit()